package com.dailyblue.java.spring.boot.boot02.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("emp")
public class Emp implements Serializable {
    @TableId(value = "empno",type = IdType.AUTO)
    private Integer empNo;
    @TableField("ename")
    private String ename;
    private String job;
    private Integer mgr;
    @TableField("hiredate")
    private String hireDate;
    private Double sal;
    private Double comm;
    private Integer deptNo;
    // value:存在，delval:不存在
    @TableLogic(value = "1",delval = "0")
    private Integer empState;

    // 描述部门名称 这个在Emp表中不存在
    @TableField(exist = false)
    private String dname;
}
